import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

// 路由
import router from './router';

import store from "./store";

// element-plus
import { setupElementPlusIcons } from './mainlib/main_element-plus';

import { setupDirective } from './mainlib/main_directive';

const setupAll = async () => {
    const app = createApp(App);

    setupElementPlusIcons(app);

    setupDirective(app);

    app.use(router);

    app.use(store);
    
    app.mount('#app')
}

setupAll()
